package org.dromara.work.domain.bo;

import org.dromara.work.domain.MhQj;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 全景管理业务对象 mh_qj
 *
 * @author Chen
 * @date 2025-02-11
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = MhQj.class, reverseConvertGenerate = false)
public class MhQjSaveBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 全景介绍
     */
    @NotBlank(message = "全景介绍不能为空", groups = { AddGroup.class, EditGroup.class })
    private String summary;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orderNum;

    /**
     * 缩略图
     */
    @NotBlank(message = "缩略图不能为空", groups = { AddGroup.class, EditGroup.class })
    private String thumbnail;

    /**
     * 全景照片
     */
    @NotBlank(message = "全景照片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String photo;

    /**
     * 空间坐标
     */
    @NotBlank(message = "空间坐标不能为空", groups = { AddGroup.class, EditGroup.class })
    private String lonlat;


}
